////////////////////////////////////////////////////////////////////////////////
//(c) Intelliquip, Inc. 2001
////////////////////////////////////////////////////////////////////////////////
//$Log:
// 1    Version 10.0 (Current View)1.0         10/2/2009 4:30:17 PM   Jeff
//      Heigl      
//$
//$NoKeywords$
////////////////////////////////////////////////////////////////////////////////
package com.intelliquip.hydraulicselection.control.web;

/**
 * This represents the link that was clicked on the Selector start page.
 * @author Jeff Heigl
 */
public enum HomeOrigin {
	NONE(0), SEARCH(1), SIZE_LIST(2);

	private final int id;
	HomeOrigin(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public static HomeOrigin getById(int id) {
		for(HomeOrigin homeOrigin : values()) {
			if(homeOrigin.id == id) {
				return homeOrigin;
			}
		}
		return NONE;
	}
}
